package zh.demo.webuser.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zh.demo.webuser.dao.WechatArticleCollectDao;
import zh.demo.webuser.model.WechatArticleCollectEntity;
import zh.demo.webuser.service.WechatArticleCollectService;


import java.util.List;
import java.util.Map;

@Service("wechatArticleCollectService")
public class WechatArticleCollectServiceImpl implements WechatArticleCollectService {
	@Autowired
	private WechatArticleCollectDao wechatArticleCollectDao;
	
	@Override
	public WechatArticleCollectEntity queryObject(Long id){
		return wechatArticleCollectDao.queryObject(id);
	}
	
	@Override
	public List<WechatArticleCollectEntity> queryList(Map<String, Object> map){
		return wechatArticleCollectDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return wechatArticleCollectDao.queryTotal(map);
	}
	
	@Override
	public void save(WechatArticleCollectEntity wechatArticleCollect){
		wechatArticleCollectDao.save(wechatArticleCollect);
	}
	
	@Override
	public void update(WechatArticleCollectEntity wechatArticleCollect){
		wechatArticleCollectDao.update(wechatArticleCollect);
	}
	
	@Override
	public void delete(Long id){
		wechatArticleCollectDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		wechatArticleCollectDao.deleteBatch(ids);
	}
	
}
